package com.oreilly.ez.repo;

import com.oreilly.ez.entity.SysNoteItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface SysNoteItemRepo extends JpaRepository<SysNoteItem, Integer>{


    @Query("select s from SysNoteItem  s where s.sysNote.sid = :sid order by s.timeTitle asc ")
    List<SysNoteItem> findItems(@Param("sid") Integer id);
}
